#ifndef LIST_DATA_H
#define LIST_DATA_H

/**
 * list_data.h
 * Asif Shahidullah
 *
 * Prototypes and structure for the data structure stored by
 * a node in the doubly-linked list.
 */

/* Stores all relevant information for this iteration, note
 * hour and minute are in 24 hour format */
struct data_t {
  int hour;
  int min;
  float temp;
  int ac;
};
typedef struct data_t* LData;

/* Create an LData struct */
LData create_LData(int, int, float);

/* Free allocated memory */
void dealloc_LData(LData);

/* Checks if two LData types are the same by firstly minute
 * then hour.*/
int is_LData_match(LData, LData);

#endif
